<% if flash[:notice]  -%>
  <div class="sysmsg"><%= flash[:notice] -%></div>
  <% flash[:notice] = nil -%>
<% end -%>

<div id="body" class="ui-roundedbox">
  <div class="ui-roundedbox-corner ui-roundedbox-tl">
    <div class="ui-roundedbox-corner ui-roundedbox-tr">
      <div class="ui-roundedbox-corner ui-roundedbox-bl">
        <div class="ui-roundedbox-corner ui-roundedbox-br">
          <div class="ui-roundedbox-content">
              <%
                # Implement Privacy control later.
              -%>
            <div id="info">
              <div id="avatar">
                <%= link_to(image_tag(@user.avatar, :alt => @user.display_name).to_s, {:controller => :message, :action => "user", :id => @user.id} ) -%>
              </div>
              <div id="latest">
                <h1><%= link_to(@user.name, {:controller => :message, :action => "user", :id => @user.id} ) -%></h1>
                <h2><%= h(@favorite.title) + " - " + link_to((@favorite.url.length > 25 ? (@favorite.url.slice(0,24) + "...") : @favorite.url), @favorite.url) + " " + @favorite.description -%></h2>
                  <span class="stamp"><%= link_to("Posted about " + time_string(Time.now.to_i - @favorite.favorite_at.to_i) + " ago", {:controller => :favorite, :action => "show", :id => @favorite.id}, :class => "time") -%></span>
                </h2>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>